package com.wg.dome.entity.config;

import com.wg.db.annotation.EntityField;
import com.wg.db.annotation.EntityTable;
import com.wg.db.schema.AccessLevel;

import java.io.Serializable;

/**
 * 装备灵石
 */
@EntityTable(tableName = "static_equip_lingshi",accessLevel = AccessLevel.ReadOnly)
public class EquipLingShiEntity implements Serializable {

    @EntityField(isKey = true)
    private int level;

    /**
     * 攻击
     */
    @EntityField
    private int atk;

    /**
     * 物理防御
     */
    @EntityField
    private int def;

    /**
     * 魔法防御
     */
    @EntityField
    private int rgs;

    /**
     * 生命值
     */
    @EntityField
    private int hp;

    /**
     * 消耗道具ID [id,id,id,id]
     */
    @EntityField(fieldName = "use_item_ids",isSerialize = true)
    private int[] useItemIds;

    /**
     * 消耗道具数量
     */
    @EntityField(fieldName = "use_item_count")
    private int useItemCount;

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getAtk() {
        return atk;
    }

    public void setAtk(int atk) {
        this.atk = atk;
    }

    public int getDef() {
        return def;
    }

    public void setDef(int def) {
        this.def = def;
    }

    public int getRgs() {
        return rgs;
    }

    public void setRgs(int rgs) {
        this.rgs = rgs;
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }


    public int getUseItemCount() {
        return useItemCount;
    }

    public void setUseItemCount(int useItemCount) {
        this.useItemCount = useItemCount;
    }

    public int[] getUseItemIds() {
        return useItemIds;
    }

    public void setUseItemIds(int[] useItemIds) {
        this.useItemIds = useItemIds;
    }
}
